gtk4.git
3 years agoinscription: Add ::markup
Benjamin Otte [Thu, 9 Jun 2022 00:43:13 +0000 (02:43 +0200)]
inscription: Add ::markup

Utility property that sets both the ::text and ::attributes properties,
mainly intended for use in ui files to ease translation support and bindings.

3 years agoinscription: Add ::attributes property
Benjamin Otte [Wed, 8 Jun 2022 22:59:05 +0000 (00:59 +0200)]
inscription: Add ::attributes property

3 years agogtkpango: Add G_GNUC_WARN_UNUSED_RESULT
Benjamin Otte [Thu, 9 Jun 2022 00:42:10 +0000 (02:42 +0200)]
gtkpango: Add G_GNUC_WARN_UNUSED_RESULT

Guess who just spent 10 minutes in gdb and doesn't want to do that
again.

3 years agoinspector: Add inscription support
Benjamin Otte [Tue, 7 Jun 2022 15:30:14 +0000 (17:30 +0200)]
inspector: Add inscription support

Allow searching for inscription text and show it in the label column.

3 years agoinspector: Use inscriptions in the object tree
Benjamin Otte [Tue, 7 Jun 2022 15:23:32 +0000 (17:23 +0200)]
inspector: Use inscriptions in the object tree

3 years agotestcolumnview: Use GtkInscription
Benjamin Otte [Tue, 7 Jun 2022 04:21:14 +0000 (06:21 +0200)]
testcolumnview: Use GtkInscription

This test is suddenly MASSIVELY faster.

I wonder why.
Could it be because inscription does exactly what it was made for?

3 years agogtk-demo: Use GtkInscription in the wordlist demo
Benjamin Otte [Tue, 7 Jun 2022 04:09:37 +0000 (06:09 +0200)]
gtk-demo: Use GtkInscription in the wordlist demo

3 years agogtk-demo: Use GtkInscription in the main list
Benjamin Otte [Thu, 19 May 2022 04:45:05 +0000 (06:45 +0200)]
gtk-demo: Use GtkInscription in the main list

3 years agoAdd GtkInscription
Benjamin Otte [Thu, 19 May 2022 04:44:23 +0000 (06:44 +0200)]
Add GtkInscription

A label alternative that renders itself into a given rectangle.

The main use case is cells in column view.

Related: #3334

3 years agolistview: Fix clipping for horizontal listviews
Benjamin Otte [Tue, 7 Jun 2022 17:12:17 +0000 (19:12 +0200)]
listview: Fix clipping for horizontal listviews

Fixes a bug introduced with
commit 39645d32582892bc4fd3bb55ea5d11af860f0efd

3 years agoinspector: Allow searching for editable text
Benjamin Otte [Tue, 7 Jun 2022 15:32:03 +0000 (17:32 +0200)]
inspector: Allow searching for editable text

... and display it in the label column.

3 years agovideo: Fix typo in docs
Benjamin Otte [Thu, 19 May 2022 03:40:47 +0000 (05:40 +0200)]
video: Fix typo in docs

3 years agolistview: cull listitems that are out of view
Benjamin Otte [Wed, 1 Jun 2022 02:29:15 +0000 (04:29 +0200)]
listview: cull listitems that are out of view

Use set_child_visible(FALSE) on those widgets and don't allocate them.

This should usually be the majority of items, so it's quite a worthwhile
addition.

Idea by Ivan Molodetskikh.

Related: #3334

3 years agoMerge branch 'fix-ui-file-translation-main' into 'main'
Matthias Clasen [Mon, 6 Jun 2022 22:45:44 +0000 (22:45 +0000)]
Merge branch 'fix-ui-file-translation-main' into 'main'

Fix ui files to work for translations

Closes #4957

See merge request GNOME/gtk!4798

3 years agoFix ui files to work for translations
Matthias Clasen [Mon, 6 Jun 2022 22:29:14 +0000 (18:29 -0400)]
Fix ui files to work for translations

We need to keep using translatable="yes", since
that is what the installed its file is looking
for.

Fixes: #4957
3 years agoMerge branch 'matthiasc/for-main' into 'main'
Matthias Clasen [Mon, 6 Jun 2022 13:12:15 +0000 (13:12 +0000)]
Merge branch 'matthiasc/for-main' into 'main'

gdk: Improve GdkTimeCoord docs

See merge request GNOME/gtk!4795

3 years agogdk: Improve GdkTimeCoord docs
Matthias Clasen [Mon, 6 Jun 2022 12:55:51 +0000 (08:55 -0400)]
gdk: Improve GdkTimeCoord docs

3 years agoUpdate Persian translation
Danial Behzadi [Mon, 6 Jun 2022 08:13:32 +0000 (08:13 +0000)]
Update Persian translation

3 years agoUpdate Russian translation
Aleksandr Melman [Sun, 5 Jun 2022 12:34:50 +0000 (12:34 +0000)]
Update Russian translation

3 years agoUpdate Ukrainian translation
Yuri Chornoivan [Sun, 5 Jun 2022 08:26:34 +0000 (08:26 +0000)]
Update Ukrainian translation

3 years agoMerge branch 'gl-api-es-fix' into 'main'
Benjamin Otte [Sat, 4 Jun 2022 20:26:58 +0000 (20:26 +0000)]
Merge branch 'gl-api-es-fix' into 'main'

glcontext: Respect ES API when getting gl version from shared context

Closes #4763

See merge request GNOME/gtk!4687

3 years agoglcontext: Simplify get_required_version api
Pablo Correa Gómez [Mon, 30 May 2022 18:18:15 +0000 (20:18 +0200)]
glcontext: Simplify get_required_version api

Simplify the API to just return the requirements that the user
has asked for. The rest of the code was undocumented and previously
used as a buggy source for a default value from internal code.
Since the buggy code is now fixed, remove all unnecessary cruft.

3 years agoglcontext: Do not check for correctness in set_required_version
Pablo Correa Gómez [Wed, 25 May 2022 13:23:38 +0000 (15:23 +0200)]
glcontext: Do not check for correctness in set_required_version

There are two reasons for this:
 * First, the refactored realize code now makes sure that no
   context with unsupported version is ever created.
 * Second, this code could bump into false possitives and negatives, since
   the user is not requested, nor expected to set_required_version
   in any specific order relative to set_allowed_apis. Therefore,
   some version could be rejected or accepted based on a set of
   allowed apis that the user has not yet correctly configured.

3 years agoglcontext-glx: Refactor realize function
Pablo Correa Gómez [Mon, 30 May 2022 19:11:28 +0000 (21:11 +0200)]
glcontext-glx: Refactor realize function

Mimic the behavior of the egl context creation by stablishing
some sane logic for the api and version used. Split the decision
of the type of context (api, legacy) and the creation of a context
of a certain version and all its properties.

3 years agoglcontext: Refactor realize function, fix interaction with shared context
Pablo Correa Gómez [Fri, 6 May 2022 19:43:30 +0000 (21:43 +0200)]
glcontext: Refactor realize function, fix interaction with shared context

3 years agomacosglcontext: Do not rely on default from get_required_version
Pablo Correa Gómez [Fri, 27 May 2022 23:01:19 +0000 (01:01 +0200)]
macosglcontext: Do not rely on default from get_required_version

get_required_version cannot warranty to return any default. Instead,
fetch the user requisites clipped by the requirements in our backend.

3 years agoglcontext-win32-wgl: Respect user required version, use display as minimum
Pablo Correa Gómez [Fri, 27 May 2022 22:58:43 +0000 (00:58 +0200)]
glcontext-win32-wgl: Respect user required version, use display as minimum

By setting and then getting the required version in a context, the code
was not respecting user requirements. Instead, simply get the requested
version by the user clipped by the requirements (display version)

3 years agoglcontext: Add internal get_clipped_version function
Pablo Correa Gómez [Mon, 30 May 2022 18:14:53 +0000 (20:14 +0200)]
glcontext: Add internal get_clipped_version function

It is useful for backends to get user set preferences while
ensuring the correctness of the result, which will be always
greater or equal than the minimum version provided

3 years agoglcontext: Improve get_version documentation
Pablo Correa Gómez [Mon, 9 May 2022 22:21:40 +0000 (00:21 +0200)]
glcontext: Improve get_version documentation

3 years agoMerge branch 'expand-builtin-icontheme' into 'main'
Matthias Clasen [Sat, 4 Jun 2022 10:44:48 +0000 (10:44 +0000)]
Merge branch 'expand-builtin-icontheme' into 'main'

Add more directories to the builtin hicolor index

Closes #4960

See merge request GNOME/gtk!4786

3 years agoMerge branch 'wip/carlosg/activation-roundtrip-fix' into 'main'
Matthias Clasen [Thu, 2 Jun 2022 21:24:10 +0000 (21:24 +0000)]
Merge branch 'wip/carlosg/activation-roundtrip-fix' into 'main'

gdk/wayland: Check the GdkSurface wl_surface before using it for activation

Closes gnome-control-center#1862

See merge request GNOME/gtk!4789

3 years agogdk/wayland: Check the GdkSurface wl_surface before using it for activation
Carlos Garnacho [Thu, 2 Jun 2022 21:05:39 +0000 (23:05 +0200)]
gdk/wayland: Check the GdkSurface wl_surface before using it for activation

Double check the GdkSurface has a wl_surface before using it as the activation
token source, since we cannot use NULL surfaces here.

Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1862
3 years agogdk/wayland: Dispatch GdkAppLaunchContext activation token in its own queue
Carlos Garnacho [Thu, 2 Jun 2022 21:04:40 +0000 (23:04 +0200)]
gdk/wayland: Dispatch GdkAppLaunchContext activation token in its own queue

Use a separate queue to dispatch the token object exclusively, just like we
do on the GdkSurface activation paths.

3 years agoMerge branch 'ebassi/a11y-text-extents' into 'main'
Matthias Clasen [Thu, 2 Jun 2022 17:13:53 +0000 (17:13 +0000)]
Merge branch 'ebassi/a11y-text-extents' into 'main'

a11y: Implement atspi.Text.GetCharacterExtents for GtkTextView

See merge request GNOME/gtk!4754

3 years agoa11y: Transform GetCharacterExtents coords to native surface ones
Carlos Garnacho [Thu, 2 Jun 2022 12:32:41 +0000 (14:32 +0200)]
a11y: Transform GetCharacterExtents coords to native surface ones

These coordinates are "window"-relative, so transform textview coordinates
to the coordinate system of the GtkNative containing it.

3 years agoAdd more directories to the builtin hicolor index
Matthias Clasen [Thu, 2 Jun 2022 10:38:12 +0000 (06:38 -0400)]
Add more directories to the builtin hicolor index

We haven't had any scalable directories in this list.
Add some. Since we seem to have settled on including
just actions and status as subdirectories for each
size, add scalable/actions and scalable/status.

Fixes: #4960
3 years agoMerge branch 'wip/chergert/GTK_DEBUG_TEXT_DIR' into 'main'
Matthias Clasen [Wed, 1 Jun 2022 18:54:54 +0000 (18:54 +0000)]
Merge branch 'wip/chergert/GTK_DEBUG_TEXT_DIR' into 'main'

main: add GTK_DEBUG_TEXT_DIR environment variable

See merge request GNOME/gtk!4768

3 years agogtkmain: add support for GTK_DEBUG=invert-text-dir
Christian Hergert [Wed, 1 Jun 2022 18:26:44 +0000 (11:26 -0700)]
gtkmain: add support for GTK_DEBUG=invert-text-dir

This allows inverting the default text-direction in an application for
debugging, testing, and QA purposes. IDEs such as Builder may automate this
to encourage more application developers to test with a text-direction
different than their own.

3 years agoMerge branch 'wip/chergert/fix-lookup-with-interfaces' into 'main'
Matthias Clasen [Wed, 1 Jun 2022 00:13:44 +0000 (00:13 +0000)]
Merge branch 'wip/chergert/fix-lookup-with-interfaces' into 'main'

builderparser: fix <lookup/> with interface types

See merge request GNOME/gtk!4782

3 years agobuilderparser: fix <lookup/> with interface types
Christian Hergert [Tue, 31 May 2022 22:58:21 +0000 (15:58 -0700)]
builderparser: fix <lookup/> with interface types

If we have a <lookup name="foo" type="SomeInterface"> a runtime warning
would be emitted and the expression would fail to be created. This is
because the interfaces will likely be a GObject as well, meaning we check
the object type branch instead of the interface.

Instead, we need to use the fundamental type like other parts of the
expression system use.

3 years agoMerge branch 'matthiasc/for-main' into 'main'
Matthias Clasen [Mon, 30 May 2022 21:05:34 +0000 (21:05 +0000)]
Merge branch 'matthiasc/for-main' into 'main'

shortcutcontroller: Fix a typo

See merge request GNOME/gtk!4778

3 years agoshortcutcontroller: Fix a typo
Matthias Clasen [Mon, 30 May 2022 20:24:02 +0000 (16:24 -0400)]
shortcutcontroller: Fix a typo

3 years agoglcontext: Improve documentation on get_use_es api
Pablo Correa Gómez [Mon, 30 May 2022 18:47:40 +0000 (20:47 +0200)]
glcontext: Improve documentation on get_use_es api

3 years agoMerge branch 'gesture-click-unpaired-release-nullable-sequence' into 'main'
Carlos Garnacho [Mon, 30 May 2022 09:55:29 +0000 (09:55 +0000)]
Merge branch 'gesture-click-unpaired-release-nullable-sequence' into 'main'

Mark sequence parameter in GtkGestureClick::unpaired-release signal as nullable

See merge request GNOME/gtk!4777

3 years agoMark sequence parameter in GtkGestureClick::unpaired-release signal as nullable
Sebastian Dröge [Mon, 30 May 2022 08:33:59 +0000 (11:33 +0300)]
Mark sequence parameter in GtkGestureClick::unpaired-release signal as nullable

3 years agoUpdated Lithuanian translation
Aurimas Černius [Sun, 29 May 2022 20:05:31 +0000 (23:05 +0300)]
Updated Lithuanian translation

3 years agoMerge branch 'fix-tests-with-recent-glib' into 'main'
Matthias Clasen [Sat, 28 May 2022 15:34:13 +0000 (15:34 +0000)]
Merge branch 'fix-tests-with-recent-glib' into 'main'

Avoid g_log_set_writer_func in tests

See merge request GNOME/gtk!4772

3 years agoAvoid g_log_set_writer_func in tests
Matthias Clasen [Sat, 28 May 2022 14:17:47 +0000 (10:17 -0400)]
Avoid g_log_set_writer_func in tests

It is not usable anymore since GLib 2.72.

3 years agoUpdate Chinese (China) translation
Luming Zh [Sat, 28 May 2022 01:52:42 +0000 (01:52 +0000)]
Update Chinese (China) translation

3 years agoMerge branch 'headerbar-demo-upgrade' into 'main'
Matthias Clasen [Fri, 27 May 2022 22:18:26 +0000 (22:18 +0000)]
Merge branch 'headerbar-demo-upgrade' into 'main'

Make our demos more likable

See merge request GNOME/gtk!4769

3 years agoMake our demos more likable
Matthias Clasen [Fri, 27 May 2022 21:34:55 +0000 (17:34 -0400)]
Make our demos more likable

Nobody likes Facebook.
Everybody loves the Eagles.

3 years agoMerge branch 'wayland-cursor-scale2' into 'main'
Matthias Clasen [Fri, 27 May 2022 16:47:38 +0000 (16:47 +0000)]
Merge branch 'wayland-cursor-scale2' into 'main'

wayland: scale cursors to the right size

See merge request GNOME/gtk!4766

3 years agowayland: scale cursors to the right size
Matthias Clasen [Fri, 27 May 2022 14:10:27 +0000 (10:10 -0400)]
wayland: scale cursors to the right size

When loading cursors at scale, we expect the
cursor images to have a size of scale * size.
If we don't find such images, load them at their
unscaled size and scale them up ourselves.

Without this, cursors will appear in unexpected
sizes depending on scales and themes.

Related: #4746

3 years agoMerge branch 'main' into 'main'
Matthias Clasen [Fri, 27 May 2022 14:24:54 +0000 (14:24 +0000)]
Merge branch 'main' into 'main'

GtkIMContextSimple: array bounds was not correctly checked

Closes #4771

See merge request GNOME/gtk!4748

3 years agoMerge branch 'use-flathub-link' into 'main'
Matthias Clasen [Fri, 27 May 2022 14:10:47 +0000 (14:10 +0000)]
Merge branch 'use-flathub-link' into 'main'

Make the formatted link more neutral

See merge request GNOME/gtk!4765

3 years agoMake the formatted link more neutral
Matthias Clasen [Fri, 27 May 2022 12:43:06 +0000 (08:43 -0400)]
Make the formatted link more neutral

There have been complaints about company names in
our demos. Lets use something else.

Part of: #4716

3 years agoMerge branch 'update-initial-layout' into 'main'
Matthias Clasen [Fri, 27 May 2022 12:26:24 +0000 (12:26 +0000)]
Merge branch 'update-initial-layout' into 'main'

vulkan: Set initial layout to undefined

See merge request GNOME/gtk!4706

3 years agoMerge branch 'update-command-buffer-freeing' into 'main'
Matthias Clasen [Fri, 27 May 2022 12:25:48 +0000 (12:25 +0000)]
Merge branch 'update-command-buffer-freeing' into 'main'

vulkan: Don't attempt to free 0 command buffers

See merge request GNOME/gtk!4705

3 years agoMerge branch 'wayland-cursor-scale' into 'main'
Matthias Clasen [Fri, 27 May 2022 10:58:12 +0000 (10:58 +0000)]
Merge branch 'wayland-cursor-scale' into 'main'

wayland: Sanity check cursor image size

Closes #4746

See merge request GNOME/gtk!4761

3 years agowayland: Make cursors have the right size
Matthias Clasen [Fri, 27 May 2022 02:23:31 +0000 (22:23 -0400)]
wayland: Make cursors have the right size

The Wayland protocol requires that width and height
of cursor surfaces is an integer multiple of the
surface scale. Make it so.

Fixes: #4746
3 years agowayland: Sanity check cursor image size
Matthias Clasen [Fri, 27 May 2022 02:28:57 +0000 (22:28 -0400)]
wayland: Sanity check cursor image size

On Wayland it is a protocol violation to upload buffers with
dimensions that are not an integer multiple of the buffer scale.

Until recently, Mutter did not enforce this. When it started
doing so, some users started seeing crashes in GTK apps because the
cursor theme ended up with e.g. a 15x16 pixel image at scale of 2.

Add a small sanity check for this case.

3 years agoMerge branch 'TTMaZa-LGPL-vs-GPL' into 'main'
Matthias Clasen [Thu, 26 May 2022 12:23:56 +0000 (12:23 +0000)]
Merge branch 'TTMaZa-LGPL-vs-GPL' into 'main'

GDK is LGPL-2.1-or-later not GPL-2.1-or-later, right?

See merge request GNOME/gtk!4755

3 years agoMerge branch 'wip/chergert/fix-sysprof-wrapper' into 'main'
Matthias Clasen [Thu, 26 May 2022 11:43:56 +0000 (11:43 +0000)]
Merge branch 'wip/chergert/fix-sysprof-wrapper' into 'main'

build: fix sysprof default options

See merge request GNOME/gtk!4759

3 years agoMerge branch 'wip/otte/for-main' into 'main'
Matthias Clasen [Thu, 26 May 2022 10:03:39 +0000 (10:03 +0000)]
Merge branch 'wip/otte/for-main' into 'main'

x11: Always update shadow size

Closes #4136

See merge request GNOME/gtk!4758

3 years agobuild: fix sysprof default options
Christian Hergert [Thu, 26 May 2022 05:52:34 +0000 (22:52 -0700)]
build: fix sysprof default options

Sysprof just recently cleaned up it's meson_options.txt and this makes
the tracking of the master branch match the new values.

3 years agox11: Always update shadow size
Benjamin Otte [Thu, 26 May 2022 02:36:14 +0000 (04:36 +0200)]
x11: Always update shadow size

Not updating shadow size unconditionally would lead to shadow size not
being set on map, which would lead mutter to think that we are a Window
without extents and then become confused when we suddenly set some.

Make sure that doesn't happen by always having shadows set on map, just
like GTK3.

Fixes #4136

3 years agoMerge branch 'fix-stack-page-at-spi-parent' into 'main'
Emmanuele Bassi [Wed, 25 May 2022 14:29:41 +0000 (14:29 +0000)]
Merge branch 'fix-stack-page-at-spi-parent' into 'main'

a11y: Realize GtkStackPage parent context before trying to get a ref

Closes #4944

See merge request GNOME/gtk!4757

3 years agoa11y: Realize GtkStackPage parent context before trying to get a ref
Sebastian Keller [Wed, 25 May 2022 12:56:05 +0000 (14:56 +0200)]
a11y: Realize GtkStackPage parent context before trying to get a ref

If a context is not realized, calling gtk_at_spi_context_to_ref() will
return a null ref, because its path has not been initialized yet. This
was already done for all other cases in get_parent_context_ref(), but
was missing for the GtkStackPage case.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4944
3 years agoMerge branch 'pkgconfig' into 'main'
Matthias Clasen [Tue, 24 May 2022 16:46:18 +0000 (16:46 +0000)]
Merge branch 'pkgconfig' into 'main'

Meson: Simplify pkgconfig file generator

See merge request GNOME/gtk!4756

3 years agoMerge branch 'remove-emulated-scroll-events' into 'main'
Luca Bacci [Tue, 24 May 2022 15:26:24 +0000 (15:26 +0000)]
Merge branch 'remove-emulated-scroll-events' into 'main'

Drop pointer_emulated discrete scroll events

See merge request GNOME/gtk!4694

3 years agoMeson: Simplify pkgconfig file generator
Xavier Claessens [Tue, 24 May 2022 14:30:58 +0000 (10:30 -0400)]
Meson: Simplify pkgconfig file generator

Meson knows all private dependencies itself when passing the library as
first positional argument, no need to specify them manually. Also
simplify backend specific files by simply requiring gtk4, just like
unix-print already did.

This should fix generated gtk4-uninstalled.pc, see Meson bug report:
https://github.com/mesonbuild/meson/issues/10415

3 years agoUpdate docs/reference/gdk/gdk4-x11.toml.in
Manuel Zabelt [Tue, 24 May 2022 13:37:43 +0000 (13:37 +0000)]
Update docs/reference/gdk/gdk4-x11.toml.in

3 years agoGDK is LGPL-2.1-or-later not GPL-2.1-or-later, right?
Manuel Zabelt [Tue, 24 May 2022 13:36:07 +0000 (13:36 +0000)]
GDK is LGPL-2.1-or-later not GPL-2.1-or-later, right?

3 years agoDrop pointer_emulated discrete scroll events
Luca Bacci [Fri, 6 May 2022 11:50:23 +0000 (13:50 +0200)]
Drop pointer_emulated discrete scroll events

GTK4 has had smooth scroll events since the beginning, so we
prefer not to emit emulated discrete scroll events at all

3 years agoWayland: Only send smooth scroll events for tablet tools
Luca Bacci [Fri, 6 May 2022 11:45:06 +0000 (13:45 +0200)]
Wayland: Only send smooth scroll events for tablet tools

3 years agoMerge branch 'scroll-surface-unit-dpi-scale' into 'main'
Luca Bacci [Tue, 24 May 2022 12:19:39 +0000 (12:19 +0000)]
Merge branch 'scroll-surface-unit-dpi-scale' into 'main'

DirectManipulation: Account for DPI scale

See merge request GNOME/gtk!4749

3 years agoDirectManipulation: Account for DPI scale
Luca Bacci [Thu, 19 May 2022 13:04:41 +0000 (15:04 +0200)]
DirectManipulation: Account for DPI scale

3 years agoa11y: Implement atspi.Text.GetCharacterExtents for GtkTextView
Emmanuele Bassi [Mon, 23 May 2022 14:54:13 +0000 (15:54 +0100)]
a11y: Implement atspi.Text.GetCharacterExtents for GtkTextView

Retrieve the location of a given offset in window-relative coordinate
space.

3 years agoMerge branch 'blink-assertion' into 'main'
Matthias Clasen [Mon, 23 May 2022 14:08:43 +0000 (14:08 +0000)]
Merge branch 'blink-assertion' into 'main'

Remove an assertion that we hit

See merge request GNOME/gtk!4753

3 years agoMerge branch 'otte-main-patch-30652' into 'main'
Matthias Clasen [Mon, 23 May 2022 12:43:25 +0000 (12:43 +0000)]
Merge branch 'otte-main-patch-30652' into 'main'

gesturedrag: Fix docs

See merge request GNOME/gtk!4752

3 years agoMerge branch 'ci-meson-bump' into 'main'
Matthias Clasen [Mon, 23 May 2022 12:33:30 +0000 (12:33 +0000)]
Merge branch 'ci-meson-bump' into 'main'

CI: bump meson version from 0.59 to 0.60.3

See merge request GNOME/gtk!4751

3 years agoRemove an assertion that we hit
Matthias Clasen [Mon, 23 May 2022 12:28:00 +0000 (08:28 -0400)]
Remove an assertion that we hit

It appears that we mess up accounting for blinking
cursors sometimes, and can hit blink_cb when there
is a nonempty selection.

Instead of asserting, warn and stop blinking.

Related: #4767

3 years agoUpdate Russian translation
Aleksandr Melman [Mon, 23 May 2022 12:25:59 +0000 (12:25 +0000)]
Update Russian translation

3 years agogesturedrag: Fix docs
Benjamin Otte [Sun, 22 May 2022 12:45:28 +0000 (12:45 +0000)]
gesturedrag: Fix docs

Leftover from GTK3. Coordinates are widget relative everywhere now.

3 years agoUpdate German translation
Christian Kirbach [Sun, 22 May 2022 10:41:16 +0000 (10:41 +0000)]
Update German translation

(cherry picked from commit 7703aa5cd301f7dcff75db08b4acb2fa9b11c7d3)

3 years agoCI: bump meson version from 0.59 to 0.60.3
Christoph Reiter [Sun, 22 May 2022 09:38:14 +0000 (11:38 +0200)]
CI: bump meson version from 0.59 to 0.60.3

We pull in glib main via a submodule in CI and glib has recently
bumped its meson requirement to >= 0.60:
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2641

Install 0.60.3 where needed to make things build again.

3 years agoGtkIMContextSimple: array bounds was not correctly checked
Víctor Marzo [Thu, 19 May 2022 09:35:14 +0000 (11:35 +0200)]
GtkIMContextSimple: array bounds was not correctly checked

Fixes #4771

3 years agoMerge branch 'fix-memory-leak' into 'main'
Luca Bacci [Thu, 19 May 2022 09:05:50 +0000 (09:05 +0000)]
Merge branch 'fix-memory-leak' into 'main'

GdkWin32: Plug memory leak

See merge request GNOME/gtk!4747

3 years agoGdkWin32: Plug memory leak
Luca Bacci [Thu, 19 May 2022 06:49:05 +0000 (08:49 +0200)]
GdkWin32: Plug memory leak

3 years agoMerge branch 'wip/otte/for-main' into 'main'
Benjamin Otte [Wed, 18 May 2022 21:08:46 +0000 (21:08 +0000)]
Merge branch 'wip/otte/for-main' into 'main'

nodeparser: Fix parsing of color-matrix node

See merge request GNOME/gtk!4745

3 years agonodeparser: Fix parsing of color-matrix node
Benjamin Otte [Wed, 18 May 2022 19:16:33 +0000 (21:16 +0200)]
nodeparser: Fix parsing of color-matrix node

Negative offsets in the color matrix were inverted because it used the
rect parser.

3 years agoMerge branch 'wip/otte/for-main' into 'main'
Benjamin Otte [Wed, 18 May 2022 18:27:29 +0000 (18:27 +0000)]
Merge branch 'wip/otte/for-main' into 'main'

CI: Include reftest nodes in artifacts

See merge request GNOME/gtk!4743

3 years agoCI: Include reftest nodes in artifacts
Benjamin Otte [Wed, 18 May 2022 17:13:39 +0000 (19:13 +0200)]
CI: Include reftest nodes in artifacts

3 years agoUpdate Portuguese translation
Hugo Carvalho [Wed, 18 May 2022 14:54:31 +0000 (14:54 +0000)]
Update Portuguese translation

3 years agoMerge branch 'let_selectable_label_mnemonic_self_focus' into 'main'
Matthias Clasen [Wed, 18 May 2022 13:55:33 +0000 (13:55 +0000)]
Merge branch 'let_selectable_label_mnemonic_self_focus' into 'main'

Allow selectable labels contents to be selected by mnemonic

See merge request GNOME/gtk!4741

3 years agoAllow selectable labels contents to be selected by mnemonic
Caolán McNamara [Wed, 18 May 2022 11:40:40 +0000 (12:40 +0100)]
Allow selectable labels contents to be selected by mnemonic

expecially by the mnemonic of another label that targets it.

https://gitlab.gnome.org/GNOME/gtk/-/issues/4927

see also https://bugs.documentfoundation.org/show_bug.cgi?id=137748

3 years agoUpdate Catalan translation
Jordi Mas [Wed, 18 May 2022 11:32:32 +0000 (13:32 +0200)]
Update Catalan translation

3 years agoMerge branch 'wip/chergert/fix-4934' into 'main'
Matthias Clasen [Wed, 18 May 2022 01:34:47 +0000 (01:34 +0000)]
Merge branch 'wip/chergert/fix-4934' into 'main'

checkbutton: fix critical when setting use-underline

Closes #4934

See merge request GNOME/gtk!4740

3 years agocheckbutton: fix critical when setting use-underline
Christian Hergert [Tue, 17 May 2022 19:28:25 +0000 (12:28 -0700)]
checkbutton: fix critical when setting use-underline

This needs to make sure that we've created the label before applying the
setting on a child widget.

Fixes #4934

3 years agoMerge branch 'wip/otte/for-main' into 'main'
Benjamin Otte [Tue, 17 May 2022 00:19:01 +0000 (00:19 +0000)]
Merge branch 'wip/otte/for-main' into 'main'

testsuite: Add tests for label overdraw

See merge request GNOME/gtk!4737